package cn.virde.example.javafx.explore;

import javafx.event.ActionEvent;
import javafx.stage.DirectoryChooser;
import javafx.stage.Stage;

import java.io.File;

public class ExploreController {


    public void btn_choosePath(ActionEvent event){
        DirectoryChooser directoryChooser=new DirectoryChooser();
        File file = directoryChooser.showDialog(new Stage());
        String path = file.getPath();
        System.out.println(path);
    }
}
